xp is the velocity in x direction. xpp is the acceleration in x direction

An aging spring by JavaScript. xpp = (c0 + c1 * t) * x

c0c1

Time in seconds

xxpxppxppp

xdrawydraw

tMax

dTimeSpan

dXSpan

xposypos